package com.biovr.backend.repository;

import com.biovr.backend.domain.PublishMessage;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by monodev on 2017/6/7.
 */
@Repository
public interface PublishMessageReposiory extends MongoRepository<PublishMessage,String> {

    //根据发布类型查找
    List<PublishMessage> findByPublishTarget(String publishTarget);
}
